/**
*
* @Depends base.bizproc.js
*/
ksg.ui.bizprocs.gcontacts = function(id, dataParams) {
	return new ksg.ui.BizProc(id, dataParams, {
		options: {
			maxContactResults: 2000,
			baseContactFeed: "https://www.google.com/m8/feeds/contacts/default/full"
		},
		bizRules: {
			getBizObjListBizRule: "getGoogleContacts",
			updateBizRule: "updateGoogleContact",
			deleteBizRule: "deleteGoogleContact"
		},
		
		CurrentEditPrivilege: function() {
			return ksg.security.Privileges.Delete;
		},
		_getBizObjListRuleParameters: function() {
			return this.options;
		},
		_getDeleteBizObjRuleParams: function(id, bizObj) {
			return bizObj;
		},
		isReadyToGetInitialData: function() {
			var isIt = ksg.ui.BizProc.prototype.isReadyToGetInitialData.call(this);
			return isIt && ksg.google.isAuthenticated();
		}
	});
};
